<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="PostUserVotes.aspx.cs" Inherits="PostUserVotes"%>

<%@ Register Src="UserControls/PostHeader.ascx" TagName="PostHeader" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phActions" Runat="Server">
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/PostVotesList.aspx">List All</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phMain" Runat="Server">
    <uc1:PostHeader ID="postHeader" runat="server" />
    <asp:GridView ID="gvVotes" runat="server" AutoGenerateColumns="False" DataSourceID="dsVotes" AllowPaging="True" AllowSorting="True">
        <Columns>
            <acms:IndexField />
            <asp:BoundField DataField="DisplayName" HeaderText="DisplayName" SortExpression="(LastName, FirstName)" />
            <asp:BoundField DataField="Score" HeaderText="Vote" SortExpression="Score" />
            <asp:BoundField DataField="Created" HeaderText="DateTime" ReadOnly="True" SortExpression="Created" />
        </Columns>
    </asp:GridView>
    <acms:UserPostVoteDataSource ID="dsVotes" runat="server" EnablePaging="False" OnSelectData="dsVotes_SelectData">
    </acms:UserPostVoteDataSource>
</asp:Content>

